package com.santiao.fuel.utils;

import android.content.Context;
import android.telephony.TelephonyManager;

public class PhoneProviderInfo {

    public static String getPhoneProviderName(Context context) {
        TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
        return tm.getNetworkOperatorName(); // 手机服务商名称
    }

    public static String getPhoneProviderNumber(Context context) {
        TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
        return tm.getNetworkOperator(); // 手机服务商编号
    }
}